package net.maku.convert;

import net.maku.entity.PreOrderEntity;
import net.maku.vo.PreOrderVO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
* 预购管理
*
* @author 小车 
* @since 1.0.0 2025-03-25
*/
@Mapper
public interface PreOrderConvert {
    PreOrderConvert INSTANCE = Mappers.getMapper(PreOrderConvert.class);

    PreOrderEntity convert(PreOrderVO vo);

    PreOrderVO convert(PreOrderEntity entity);

    List<PreOrderVO> convertList(List<PreOrderEntity> list);

}